package com.coderush.admin.sys.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.coderush.admin.sys.mapper.EmployeeMapper;
import com.coderush.admin.sys.model.dto.EmpSearchDto;
import com.coderush.admin.sys.model.vo.EmployeePageVo;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Repository;

/**
 * PackageName com.coderush.admin.sys.dao
 *
 * @Author Eason
 * @Version v1.0
 * @ClassName EmployeeDao
 * @Date 2025/9/4
 * @Description TODO
 */
@Repository
public class EmployeeDao {

    @Resource
    private EmployeeMapper employeeMapper;

    /**
     * 分页查询员工列表
     */
    public Page<EmployeePageVo> findByPage(Page<EmployeePageVo> page, EmpSearchDto empSearchDto) {
        return employeeMapper.findByPage(page, empSearchDto);
    }


}